#pragma once
#include "rjson.h"
#include "role.h"
#include "plugin.h"
#include "widget/Window.h"
#include "widget/PushButton.h"
#include "widget/Table.h"
#include "widget/LineEdit.h"
extern Table m_insertTable;
extern string m_header;
extern vector<PushButton*>menu_btns;
extern LineEdit* m_modifyEdit;
extern ExMessage m_msg;
extern bool is_setting;
extern bool is_gaming;
extern string cur_user;
extern int opt;
void gamerun();
void initmenu();
int menu();
void ranks();
void setting();
void setrole();
void winning();
void drawOn(int bx, int by, int bwidth, int bheight, COLORREF color, LPCTSTR str);
string Utf8ToAnsi(const string& utf8Str);